<?php
App::import('Model','config.BaseConfig');
class SociableConfig extends BaseConfig
{
	var $name = 'SociableConfig';
		
	var $fieldProperties = array(
							
							);
		function initialize()
		{
			$fbFields = array(	'facebook_key'=>array(
								'label'=> 'Facebook application key',
								'group'=>'add'
								),
							'facebook_secret'=>array(
								'label'=> 'Facebook secret Key',
								'group'=>'add'
								));
			$twiiterFields = array(
					'twitter_consumerKey'=>array(
								'label'=>"Twitter consumer key",
								'group'=>'add'
								),							
							'twitter_consumerSecret'=>array(
								'label'=>"Twitter cosumer secert key",
								'group'=>'add'
					),
			);
			$linkedinFields = array('linkedin_consumerKey'=>array(
								'label'=>"Linkedin consumer key",
								'group'=>'add'
								),							
							'linkedin_consumerSecret'=>array(
								'label'=>"Linkedin cosumer secert key",
								'group'=>'add'
								));
			if(cr("Facebook.enabled"))
			{
				$this->fieldProperties  = am($this->fieldProperties,$fbFields);
			}
			if(cr("Twitter.enabled"))
			{
				$this->fieldProperties  = am($this->fieldProperties,$twiiterFields);
			}
			if(cr("Linkedin.enabled"))
			{
				$this->fieldProperties  = am($this->fieldProperties,$linkedinFields);
			}
		}
}
?>